package com.cl.short_video_java.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author 付
 * @Date 2024-11-11 17:27
 * @Version 1.0
 * @description
 * @since 1.0
 */


@Component
//通过此注解我们就可以通过已sky.alioss为其中在application.yml中配置这四个属性
@ConfigurationProperties(prefix = "sky.alioss")
@Data
public class AliOssProperties {

	private String endpoint;
	private String accessKeyId;
	private String accessKeySecret;
	private String bucketName;

}